package com.mhc.suzuki.dal.mapper.ext;

import com.mhc.suzuki.bo.AuditTaskBO;
import com.mhc.suzuki.dal.mapper.OrderAuditTaskMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * MyBatis Ext Mapper for OrderAuditTask.
 */

@Mapper
@Repository
public interface OrderAuditTaskExtMapper extends OrderAuditTaskMapper {

  /**
   * 查询员工待办任务数量
   **/
  int countByTaskNum(Long approveStaffId);


  /**
   * 获取订单最后一条审核消息
   */
  String selectNearest(String orderNo);

  /**
   *根据登录员工获取审核待办列表
   * @param queryMap
   * @return
   */
  List<AuditTaskBO> getWaitingTaskListByStaffId(Map queryMap);


  /**
   * 获取GPS确认列表
   * @param queryMap
   * @return
   */
  List<AuditTaskBO> getGPSTaskList(Map queryMap);


  List<AuditTaskBO> getExecutorTaskList(Long approveStaffId);
}
